<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>欢迎</title>
	<style>
		body { text-align:center}
		.page {
			position: sticky;
			position: -webkit-sticky;
			top: 0;
			z-index: 9999;
			margin: 0;
			padding: 0;
			text-align: center;
			width: 100%;
			border: 0;
			font-size: xx-large;
			color: #ffffff;
			background-color: blue;
		}
	</style>
</head>

<body style="margin:0;">
    <div id='pg' class='page'>0/0</div>
	<iframe id="zsl" style="border:0px;width:100%;height:2000px;"></iframe>
	<script type="text/javascript">
		function getCookie(cname){
		  var name = cname + "=";
		  var ca = document.cookie.split(';');
		  for(var i=0; i<ca.length; i++){
			var c = ca[i].trim();
			if (c.indexOf(name)==0) return c.substring(name.length,c.length);
		  }
		  return "";
		}
		function setCookie(cname,cvalue,exdays){
		  var d = new Date();
		  d.setTime(d.getTime()+(exdays*24*60*60*1000));
		  var expires = "expires="+d.toGMTString();
		  document.cookie = cname + "=" + cvalue + "; " + expires;
		}
		var prefix='http://zsl.sfood.zjamr.zj.gov.cn/gtin';
		var items=['/06930044189505/bat/20210811','/06930044192284/bat/20210723','/06930044179759/bat/20210707','/06930044178172/bat/20210810','/06930044186221/bat/20210708','/06930044178196/bat/20210714','/06930044178196/bat/20210831','/06930044186320/bat/20210626','/06930044186320/bat/20210601','/06930044186207/bat/20210806','/06930044179728/bat/20210806','/06930044181134/bat/20210702','/06930044186184/bat/20210702','/06930044187945/bat/20210607','/06930044175058/bat/20210603','/02057772289254/bat/20210607','/06930044167244/bat/20210603','/06930044179728/bat/20210820','/06930044188515/bat/20210617','/02057772289230/bat/20210602','/06930044191201/bat/20210610','/069300175005/bat/20210602','/02057772289148/bat/20210820','/02057772289148/bat/20210820','/02057772289155/bat/20210708','/02057772289162/bat/20210619','/02057772289162/bat/20210813','/02057772289162/bat/20210804','/06930044167251/bat/20210818','/02057772289179/bat/20210629','/02057772289186/bat/20210623','/02057772289193/bat/20210723','/02057772289209/bat/20210701','/02057772289209/bat/20210831','/02057772289216/bat/20210604','/06930044175065/bat/20210702','/06930044191904/bat/20210808','/06930044179957/bat/20210805','/06930044179957/bat/20210708'];
		var next=+getCookie('test');
		var t=null;
		function change(){
			if (t) clearTimeout(t);
			setCookie("test", next, 1);
			if (next>=items.length) next=0;
			document.getElementById('zsl').src=prefix+items[next];
			document.getElementById('pg').innerHTML=next+'/'+items.length;
			next+=1;
			t=setTimeout(change, 8000);
		}
		change();
	</script>
</body>

</html>